package com.itheima.zhuanhuan;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStreamWriter;

public class Demo01 {

    public static void main(String[] args) throws IOException {
        //写  字符->字节
        OutputStreamWriter osw = new OutputStreamWriter(new FileOutputStream("day13\\aaa\\b.txt"),"gbk");
        osw.write(97);
        osw.write("我爱中国");
        osw.close();

    }
}
